import { createStore } from 'vuex'
import loginUserInfo from './modules/loginUserInfo'
export default createStore({
  state: {
    fileType: 0, // 0首页，1传输
    transmitType: 2, // 0正在下载，1正在上传，2传输完成
    dataListType: 0 // 0数据订单，1切割数据
  },
  mutations: {
    editFileType(state, payload) {
      state.fileType = payload
    },
    edittransmitType(state, payload) {
      state.transmitType = payload
    },
    editdataListType(state, payload) {
      state.dataListType = payload
    }
  },
  modules: {
    loginUserInfo
  }
})